import request from "@/utils/request";

// 附加费管理-列表
export const surchargeList = (data) =>
  request({
    url: `/fee/surcharge-manage/index`,
    method: "post",
    data,
  });
//附加费管理-详情
export const surchargeDetail = (params) =>
  request({
    url: `/fee/surcharge-manage/detail`,
    method: "get",
    params,
  });
//附加费管理-创建
export const createSurcharge = (data) =>
  request({
    url: `/fee/surcharge-manage/create`,
    method: "post",
    data,
  });
//附加费管理-编辑
export const updateSurcharge = (data) =>
  request({
    url: `/fee/surcharge-manage/update`,
    method: "post",
    data,
  });
//附加费管理-删除
export const deleteSurcharge = (data) =>
  request({
    url: `/fee/surcharge-manage/delete`,
    method: "post",
    data,
  });
//附加费管理-启用禁用
export const statusSurcharge = (data) =>
  request({
    url: `/fee/surcharge-manage/status`,
    method: "post",
    data,
  });

//获取邮编区域下拉数据
export const getZipCodeRegion = (data) =>
  request({
    url: `/opts/zip-code-region`,
    method: "post",
    data,
  });
